project (LADSUtil)

SET( ${PROJECT_NAME}_MAJOR_VERSION 0 )
SET( ${PROJECT_NAME}_MINOR_VERSION 1 )
SET( ${PROJECT_NAME}_PATCH_LEVEL 0 )

IF(CMAKE_COMPILER_IS_GNUCXX)
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector -Wall -g -pg")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector -Wall")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)

#options
OPTION(COMPILE_TESTS "Compile tests" ON)

#check for Boost
FIND_PACKAGE(Boost REQUIRED)

if (NOT Boost_FOUND)
      message(FATAL_ERROR "Fatal error: Boost (version >= x.x.x) required.\n"
      )
endif (NOT Boost_FOUND)


#install path
SET(CMAKE_INSTALL_PREFIX "/usr/local")

#Un/comment as will the following 2 lines
SET(CMAKE_BUILD_TYPE Debug)
#SET(CMAKE_BUILD_TYPE Release)

add_subdirectory (src)
IF(COMPILE_TESTS)
	add_subdirectory (test)
ENDIF(COMPILE_TESTS)


